﻿using System;
using System.Windows.Forms;

namespace TFSMailer
{
    public partial class Settings : Form
    {
        public Settings()
        {
            InitializeComponent();
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.SMTP = txtSMTPServer.Text;
            Properties.Settings.Default.FromMail = txtFromMail.Text;
            Properties.Settings.Default.UserName = txtUserName.Text;
            Properties.Settings.Default.Password = txtPassword.Text;
            Properties.Settings.Default.Save();
            Close();
        }

        private void Settings_Load(object sender, EventArgs e)
        {
            txtSMTPServer.Text = Properties.Settings.Default.SMTP;
            txtUserName.Text = Properties.Settings.Default.UserName;
            txtFromMail.Text = Properties.Settings.Default.FromMail;
        }


    }
}
